www.gusucode.com > Neutrosophic logic toolbox Package_ Neutrosophic Matrices > Neutrosophic logic toolbox Package_ Neutrosophic Matrices/@sterm/char.m

    function s = char(p)
% function s = char(p)
% STER,/CHAR   
% CHAR(p) is the string representation of the sterm p
%
%In the Name of ALLAH
% neutrosphic logic toolbox for computing single valued neutrosophic Matrice 
% Copyright (C) 2015-2019 Broumi said 
%for for details see the refrence:  
%Said Broumi, Le Hoang Son, Assia Bakali, Mohamed Talea, Florentin Smarandache,
%Ganeshsree Selvachandran, Computing Operational Matrices in Neutrosophic Environments:
%A Matlab Toolbox,Neutrosophic Sets and Systems, 18,2017,pp.58-66.
% neutrosphic logic toolbox for computing single valued neutrosophic Matrice comes 
% This is free software, and you are welcome to redistribute

s=[];
if (length(p)>0)&(~isempty(p))
    for k=1:length(p)
        if isempty(s)
            s=[];
        else
            s=[s '  +  '];
        end
        s=[s char(p(k).t)];
    end
else
    s=' empty term '
end